package pattern.factory.抽象工厂;

public class Client {
    public static void main(String[] args) {
//        ADessertFactory factory = new ADessertFactory();
        BDessertFactory factory = new BDessertFactory();
        Dessert dessert = factory.createDessert();
        Coffee coffee = factory.createCoffee();
        
        dessert.show();
        System.out.println(coffee.getName());

    }
}
